#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include <string.h>
int main()
{
	char arr[100];
	fgets(arr, 100, stdin);
	size_t len = strlen(arr);
	while (len)
	{
		char* p = arr;
		char a = *(p + len - 2);
		len--;
		printf("%c", a);
	}
	

	return 0;
}